//
//  WeatherData.m
//  BiuWeather
//
//  Created by 楼楚 on 16/3/12.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import "WeatherData.h"
#define hourly_forecast @"hourly_forecast"
#define status @"status"
#define daily_forecast @"daily_forecast"
#define aqi @"aqi"
#define basic @"basic"
#define suggestion @"suggestion"
#define now @"now"

@implementation WeatherData
- (id)initWithDictionary:(NSDictionary *)dic{
    self = [super self];
    if (self) {
        self.today = [[Today alloc]initWithDictionary:[dic objectForKey:now]];
        self.week = [[Weekly alloc]initWithDictionary:[dic objectForKey:daily_forecast]];
        
    }
    return self;
}
@end
